package com.wsx.service.Impl;

import com.wsx.bean.User;
import com.wsx.dao.UserDao;
import com.wsx.service.UserService;

public class UserServiceImpl implements UserService {
	private UserDao userDao;
	
	
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public User getUserById(int userId) {
		System.out.println("aaaa");
		return userDao.getUserById(userId);
	}

	@Override
	public void saveUser(User user) {
		userDao.saveUser(user);
	}

}
